package com.hst.web.base.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

import com.hst.core.annotation.Comment;
import com.hst.core.annotation.HSID;
import com.hst.core.dao.BaseEntity;

@Entity
@Table(name = "t_company_dept")
@Comment("企业部门信息表")
@HSID(length = 10, prefix = "D", resetByDay = true)
public class TCompanyDept extends BaseEntity {

	@Id
	@Column(name = "dept_code", length = 20)
	@Comment("部门编号")
	@GeneratedValue(generator = "hsid")
	@GenericGenerator(name = "hsid", strategy = "com.hst.core.hbm.HSIDGenerator")
	private String deptCode;

	@Column(name = "dept_name", length = 50, nullable = false)
	@Comment("部门名称")
	private String deptName;

	@Column(name = "company_code", length = 20, nullable = false)
	@Comment("企业编号")
	private String companyCode;

	@Column(name = "mem", length = 50)
	@Comment("备注")
	private String mem;

	@Column(name = "code", length = 30)
	@Comment("编码")
	private String code;

	public String getDeptCode() {
		return deptCode;
	}

	public void setDeptCode(String deptCode) {
		this.deptCode = deptCode;
	}

	public String getDeptName() {
		return deptName;
	}

	public void setDeptName(String deptName) {
		this.deptName = deptName;
	}

	public String getCompanyCode() {
		return companyCode;
	}

	public void setCompanyCode(String companyCode) {
		this.companyCode = companyCode;
	}

	public String getMem() {
		return mem;
	}

	public void setMem(String mem) {
		this.mem = mem;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

}
